package a02_factory.model;

public class Client {

	public static void main(String[] args) {
		Creator creator = new ConcreteCreator();
		Product p1 = creator.createProduct(ConcreteProduct1.class);
		Product p2 = creator.createProduct(ConcreteProduct2.class);
		p1.method2();
		p2.method2();
	}
}
